﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Deflection
{
    class TestEnemy : Enemy
    {

        public static Texture2D EnemySprite { get; set; }



        public TestEnemy(Vector2 position, Texture2D texture) : base(position, texture, new Color(81,143,200))
        {
            
            Type = EnemyType.SquareEnemy;
            


        }

        public override void Update(GameTime gameTime)
        {

            switch (State)
            {
                case EnemyState.Spawning:
                    
                    State = EnemyState.Alive;

                    break;
                case EnemyState.Alive:
                    //Position += velocity;

                    break;
                case EnemyState.Dying:


                    break;
                case EnemyState.Dead:
                    break;
            }



            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            switch (State)
            {
                case EnemyState.Spawning:
                    break;
                case EnemyState.Alive:

                    if (isCore)
                    {
                        Color = Color.GreenYellow;
                    }
                    else
                    {
                        Color = new Color(81, 143, 200);
                    }

                    
                    break;
                case EnemyState.Dying:

                    
                    break;
                case EnemyState.Dead:
                    break;
            }


            base.Draw(gameTime, spriteBatch);

        }

    }
}
